<?php
// +----------------------------------------------------------------------
// | 文章模型
// +----------------------------------------------------------------------
// | Author: 李乾坤 <261001642@qq.com>
// +----------------------------------------------------------------------

namespace app\common\validate;
use think\Validate;

class Salesman extends validate {

    protected $rule = [
        'realname'   =>  'require|min:2|max:50|unique:Salesman',
    ];
    protected $message  =   [
        'realname.require'		    => '姓名必须填写',
        'realname.min'				=> '姓名最最少2个字符',
        'realname.max'				=> '姓名最多不能超过25个字符',
        'realname.unique'		    => '姓名已经存在',    
    ];

}
?>